import request from '@/utils/request'

// 查询发短信记录列表
export function listUserSms(query) {
  return request({
    url: '/business/userSms/list',
    method: 'get',
    params: query
  })
}

// 查询发短信记录详细
export function getUserSms(id) {
  return request({
    url: '/business/userSms/' + id,
    method: 'get'
  })
}

// 新增发短信记录
export function addUserSms(data) {
  return request({
    url: '/business/userSms',
    method: 'post',
    data: data
  })
}

// 修改发短信记录
export function updateUserSms(data) {
  return request({
    url: '/business/userSms',
    method: 'put',
    data: data
  })
}

// 删除发短信记录
export function delUserSms(id) {
  return request({
    url: '/business/userSms/' + id,
    method: 'delete'
  })
}

// 导出发短信记录
export function exportUserSms(query) {
  return request({
    url: '/business/userSms/export',
    method: 'get',
    params: query
  })
}